export function use() {
  const treeNode: any = ref({}),
    comName = ref<LisZkbzLx>('dl'),
    isEdit = ref(true)
  function treeClick(a: any, b: any, c: any, d: any) {
    isEdit.value = true
    if (b.level == 5) {
      treeNode.value = a
      isEdit.value = false
      switch (a.zkgzdldm) {
        case '定性质控':
          comName.value = 'dx'
          break
        default:
          comName.value = 'dl'
          break

      }
    }
  }
  return { treeClick, comName, treeNode, isEdit }
}